﻿using System;
using YunZuan.Models.Attributes;
using YunZuan.Models.Entities;

namespace YunZuan.Models
{
    [Table(TableName = "yz_black_list", PrimaryKey = "ID")]
    public class BlackList : BaseEntity
    {
        public BlackList()
		{}
        #region Model
        private int _id;
        /// <summary>
        ///ID
        /// </summary>
         [Column(IsAutoIncrement = true)]
        public int ID
        {
            get { return _id; }
            set { this.ChangeNotify<int>("ID", value, ref _id); }
        }
        private string _activeip;
        /// <summary>
        ///IP
        /// </summary>
        public string ActiveIP
        {
            get { return _activeip; }
            set { this.ChangeNotify<string>("ActiveIP", value, ref _activeip); }
        }
        private DateTime _createtime;
        /// <summary>
        ///创建时间
        /// </summary>
        public DateTime createTime
        {
            get { return _createtime; }
            set { this.ChangeNotify<DateTime>("createTime", value, ref _createtime); }
        }
        private int _status = 0;
        /// <summary>
        ///状态0是禁止访问,1可以访问
        /// </summary>
        public int status
        {
            get { return _status; }
            set { this.ChangeNotify<int>("status", value, ref _status); }
        }
        private DateTime _updatetime;
        /// <summary>
        ///更新时间
        /// </summary>
        public DateTime updateTime
        {
            get { return _updatetime; }
            set { this.ChangeNotify<DateTime>("updateTime", value, ref _updatetime); }
        }
        private int _times = 0;
        /// <summary>
        ///次数
        /// </summary>
        public int times
        {
            get { return _times; }
            set { this.ChangeNotify<int>("times", value, ref _times); }
        }
        #endregion


    }
}
